﻿@model Website.Models.Product

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Product</legend>

    <div class="display-label">ProductCode</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProductCode)
    </div>

    <div class="display-label">Price</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Price)
    </div>

    <div class="display-label">Category</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Category.CategoryName)
    </div>

    <div class="display-label">MainImage</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MainImage)
    </div>

    <div class="display-label">SubImage1</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubImage1)
    </div>

    <div class="display-label">SubImage2</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubImage2)
    </div>

    <div class="display-label">SubImage3</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SubImage3)
    </div>

    <div class="display-label">Desc</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Desc)
    </div>

    <div class="display-label">SmallImage</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SmallImage)
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
